import { AuthComponent } from '../../components/suspense/index'

import { lazy } from "react"

var Shoppingcart  =  lazy(() => import('./component/Shoppingcart.jsx'))
var Callectshopping  =  lazy(() => import('./component/Callectshopping.jsx'))
var Jiageben  =  lazy(() => import('./component/Jiageben.jsx'))
var Baidu  =  lazy(() => import('../../components/Baidu'))

var Trand  =  lazy(() => import('./Trand.jsx'))

export default [ //Goods模块的二级路由
    {
        path:'/index/shoppingcart',
        element: <AuthComponent permission={ 3 }><Shoppingcart /></AuthComponent>
    },
    {
        path:'/index/callectshopping',
        element: <AuthComponent permission={ 3 }><Callectshopping /></AuthComponent>
    },
    {
        path:'/index/jiageben',
        element: <AuthComponent permission={ 3 }><Jiageben /></AuthComponent>
    },
    {
        path:'/index/baidu',
        element: <AuthComponent permission={ 3 }><Baidu /></AuthComponent>
    },
    {
        path:'/index/trand',
        element: <AuthComponent permission={ 3 }><Trand /></AuthComponent>
    }
]
